package _5_Create._5_1_Factory._5_1_0_SimpleFactory._0_;

public class Customer {

    public void eatFruit() {
        try {
            Fruit apple = FruitGardener.factory("apple");
            Fruit grape = FruitGardener.factory("grape");
            Fruit strawberry = FruitGardener.factory("strawberry");

        } catch (BadFruitException e) {
            e.printStackTrace();
        }

    }
}
